package user.userer;

import book.BookList;
import operation.IOperation;
//抽象类，主要为了被继承
public abstract class User {
    public String name;
    public IOperation[] operation;

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();

    public void doOperation(int choice, BookList bl) {
        if(choice>6)
        {
            System.out.println("输入错误请重新输入");
            menu();
        }else{
            this.operation[choice].work(bl);
        }
    }
}